package oss

type Oss struct {
	Type string `json:"type"`
}

const (
	OSS_TYPE_ALI string = "ali" //ali oss
)

func NewOssClient(ossType string) *Oss {
	return &Oss{Type: ossType}
}

func (o *Oss) GetImageUrl(path string, size int) string {
	if o.Type == "ali" {
		return NewAliOss().PreviewUrl(path, size, size)
	} else {
		return ""
	}
}
